﻿
using System.Globalization;
using System.Windows;
using TotalApplication.Core;

namespace TotalApplication.AngelSix
{
    /// <summary>
    /// A converter to takes in a boolean if a message was sent by me, and aligns to the right
    /// If not sent by me, aligns to the left
    /// </summary>
    public class PopupContentConverter : BaseValueConverter<PopupContentConverter>
    {
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if(value is MenuViewModel) 
                return new VerticalMenu { DataContext = value };

            return null;
        }

        public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
